package com.axxy.factory;

/**
 * @author 一缕茜阳
 * @date 2021/7/27
 */
public abstract class FriedYogurtFactory {

    public FriedYogurt makseFriedYogurt(String material) {

        FriedYogurt friedYogurt = createFriedYogurt(material);
        dealFriedYogurt(friedYogurt);

        return friedYogurt;
    }

    abstract FriedYogurt createFriedYogurt(String material);

    abstract void dealFriedYogurt(FriedYogurt friedYogurt);
}
